﻿using System;
using System.Collections.Generic;
using System.Text;

namespace QiHe.Yaml.Grammar
{
    public partial class Mapping : DataItem
    {
        public List<MappingEntry> Entries = new List<MappingEntry>();

        public MappingEntry Find(string key)
        {
            // This is so ugly.
            return Entries.Find(i => i.Key.ToString().Equals(key));
        }
    }
}
